from django.db import models

# Create your models here.

class Users(models.Model):
    objects = None
    username = models.CharField(max_length=30, unique=True, verbose_name='用户名')
    password = models.CharField(max_length=32, verbose_name='密码')
    created_time = models.DateTimeField(verbose_name='创建时间', auto_now_add=True)
    updated_time = models.DateTimeField(verbose_name='更新时间', auto_now=True)

    def __str__(self):
        return f'用户名: {self.username}'